﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddStoreGrades.aspx.cs"
    Inherits="MvcMall.AdminWeb.Manage.StoreApplies.AddStoreGrades" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>新增网商等级</title>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <link href="/Scripts/Validate/pagevalidator.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/Site.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="/Scripts/Validate/pagevalidator.js" type="text/javascript"></script>
    <script>
        $(function () {
            $("#tabs").tabs();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <UC:ValidatorContainer runat="server" IsScriptManagerInside="false" ID="ValidatorContainer" />
    <div id="tabs">
        <ul>
            <li><a href="#add">新增/修改网商等级</a></li></ul>
        <div id="add">
            <fieldset>
                <asp:Label ID="lblId" runat="server" Visible="false"></asp:Label>
                <div class="editor-label">
                    网商等级名称:
                </div>
                <div class="editor-field">
                    <asp:TextBox ID="txtGradeName" runat="server" MaxLength="32" Width="400px"></asp:TextBox>
                    <div id="txtGradeNameTip" style="width: 200px;">
                    </div>
                    <UC:ValidateTarget ID="ValidateTarget1" ContainerId="ValidatorContainer" runat="server"
                        OkMessage="OK" NullMessage="网商等级名称不能为空" ControlToValidate="txtGradeName" Nullable="false"
                        FocusMessage="请输入网商等级名称">
                        <Validators>
                            <UC:InputStringClientValidator ErrorMessage="请输入网商等级名称" UpperBound="32" />
                        </Validators>
                    </UC:ValidateTarget>
                </div>
                <div class="editor-label">
                    允许发布商品数:
                </div>
                <div class="editor-field">
                    <asp:TextBox ID="txtShopCount" Width="80" runat="server"></asp:TextBox>
                    <span style="color: Red; padding-left: 10px;">0 代表无限制 </span>
                    <div id="txtShopCountTip" style="width: 200px;">
                    </div>
                    <UC:ValidateTarget ID="ValidateTarget2" ContainerId="ValidatorContainer" runat="server"
                        OkMessage="OK" NullMessage="允许发布商品数不能为空" ControlToValidate="txtShopCount" Nullable="false"
                        FocusMessage="请输入允许发布商品数">
                        <Validators>
                            <UC:InputNumberClientValidator ErrorMessage="请输入允许发布商品数" />
                        </Validators>
                    </UC:ValidateTarget>
                </div>
                <div class="editor-label">
                    上传空间大小(MB):
                </div>
                <div class="editor-field">
                    <asp:TextBox ID="txtSpaceLimit" Width="80" runat="server"></asp:TextBox>
                    <span style="color: Red; padding-left: 10px;">0 代表无限制 </span>
                    <div id="txtSpaceLimitTip" style="width: 200px;">
                    </div>
                    <UC:ValidateTarget ID="ValidateTarget3" ContainerId="ValidatorContainer" runat="server"
                        OkMessage="OK" NullMessage="上传空间大小不能为空" ControlToValidate="txtSpaceLimit" Nullable="false"
                        FocusMessage="请输入上传空间大小">
                        <Validators>
                            <UC:InputNumberClientValidator ErrorMessage="请输入上传空间大小" />
                        </Validators>
                    </UC:ValidateTarget>
                </div>
                <div class="editor-label">
                    可选模板套数:
                </div>
                <div class="editor-field">
                    <asp:TextBox ID="txtSkinLimit" Width="80" runat="server"></asp:TextBox>
                    <div id="txtSkinLimitTip" style="width: 200px;">
                    </div>
                    <UC:ValidateTarget ID="ValidateTarget4" ContainerId="ValidatorContainer" runat="server"
                        OkMessage="OK" NullMessage="可选模版数不能为空" ControlToValidate="txtSkinLimit" Nullable="false"
                        FocusMessage="请输入可选模版数">
                        <Validators>
                            <UC:InputNumberClientValidator ErrorMessage="请输入可选模版数" />
                        </Validators>
                    </UC:ValidateTarget>
                </div>
                <div class="editor-label">
                    是否允许秒杀:
                </div>
                <div class="editor-field">
                    <asp:CheckBox ID="cbIsCanSecKill" runat="server" />
                </div>
                <div class="editor-label">
                    是否允许推荐商品:
                </div>
                <div class="editor-field">
                    <asp:CheckBox ID="cbIsCanPromoted" runat="server" />
                </div>
                <div class="editor-label">
                    是否允许精品:
                </div>
                <div class="editor-field">
                    <asp:CheckBox ID="cbIsCanIsBest" runat="server" />
                </div>
                <div class="editor-label">
                    是否允许热销:
                </div>
                <div class="editor-field">
                    <asp:CheckBox ID="cbIsCanIsHot" runat="server" />
                </div>
                <div class="editor-label">
                    是否允许上传商品高清图片:
                </div>
                <div class="editor-field">
                    <asp:CheckBox ID="cbCanUploadDefinitionImg" runat="server" />
                </div>
                <div class="editor-label">
                    是否允许上传商品视频:
                </div>
                <div class="editor-field">
                    <asp:CheckBox ID="cbIsCanUploadVideo" runat="server" />
                </div>
                <div class="editor-label">
                    加盟费:
                </div>
                <div class="editor-field">
                    <asp:TextBox ID="txtInitiaFee" Width="80" runat="server"></asp:TextBox>
                    <div id="txtInitiaFeeTip" style="width: 200px;">
                    </div>
                    <UC:ValidateTarget ID="ValidateTarget5" ContainerId="ValidatorContainer" runat="server"
                        OkMessage="OK" NullMessage="加盟费不能为空" ControlToValidate="txtInitiaFee" Nullable="false"
                        FocusMessage="请输入加盟费用">
                        <Validators>
                            <UC:InputMoneyClientValidator ErrorMessage="输入加盟费格式不正确" />
                        </Validators>
                    </UC:ValidateTarget>
                </div>
                <div class="editor-label">
                    管理费:
                </div>
                <div class="editor-field">
                    <asp:TextBox ID="txtManagementFee" Width="80" runat="server"></asp:TextBox>
                    <div id="txtManagementFeeTip" style="width: 200px;">
                    </div>
                    <UC:ValidateTarget ID="ValidateTarget6" ContainerId="ValidatorContainer" runat="server"
                        OkMessage="OK" NullMessage="管理费不能为空" ControlToValidate="txtManagementFee" Nullable="false"
                        FocusMessage="请输入管理费">
                        <Validators>
                            <UC:InputMoneyClientValidator ErrorMessage="输入管理费格式不正确" />
                        </Validators>
                    </UC:ValidateTarget>
                </div>
                <div class="editor-label">
                    等级描述:
                </div>
                <div class="editor-field">
                    <asp:TextBox ID="txtGradeDesc" TextMode="MultiLine" runat="server" Height="85px"
                        MaxLength="2000" Width="344px"></asp:TextBox>
                </div>
                <p>
                    <asp:Button ID="btnSave" runat="server" Text="保存" OnClientClick="return PageIsValid();"
                        OnClick="btnSave_Click" />
                    <input type="button" onclick="javascript:location.href='StoreGradesList.aspx';" value="关闭" />
                </p>
            </fieldset>
        </div>
    </div>
    </form>
</body>
</html>
